package Event.mainLine;

import Creature.Food;
import Creature.Player;
import Event.MainStory;

public class mainLine2 extends MainStory {
    public mainLine2(Player player) {
        super(player);
        eventName = "核酸检测";
        happenText = "你在睡梦中被吵醒，原来是楼下的大白用喇叭叫人下楼做核酸检测了。";
        options = new String[]{"乖乖下楼", "不管他接着睡"};

    }

    @Override
    public void eventHappen(int option) {
        switch (option) {
            case 0:

                if (player.isCOVID()) {
                    endText = "你被检测出阳性，一辆救护车来把你带走了";
                    nextEventIndex = 5;

                } else {
                    endText = "你是阴性，社区的人在招志愿者，管吃管住，你打算..";
                    child=new mainLine3(player);
                }


                break;
            case 1:
                if (player.isCOVID()) {
                    endText = "社区的人敲你的门，强行给你做了核酸，你被检测出阳性，一辆救护车来把你带走了";
                    nextEventIndex = 5;

                } else {
                    endText = "社区的人敲你的门，强行给你做了核酸，你是阴性，社区的人在招志愿者，管吃管住，你打算..";
                    child=new mainLine3(player);
                }
                break;



        }
    }
}
